package cn.sofwin.day0123.homework.t03;
/**
 * 父类
 * @author 仙女本仙
 * @email 1335651292@qq.com
 */
public class Animal {
    /** 毛的颜色 */
    private String color;

    /** 腿的个数 */
    private int leg;



    public Animal(String color, int leg) {
        this.color = color;
        this.leg = leg;
    }


    public String getColor() {
        return color;
    }

    public void setColor(String color) {
        this.color = color;
    }

    public int getLeg() {
        return leg;
    }

    public void setLeg(int leg) {
        this.leg = leg;
    }


    public void work(){
        System.out.print("颜色：" + color + "  腿的个数" + leg );
        System.out.print("  会：干饭");
    }
}
